package com.work.config;

import com.work.pojo.MyComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @author 绛河
 * @date 2023/5/8
 * @apiNote
 */
@Configuration
@Profile("prod")
public class ProdMyConfig {
    public MyComponent myComponent() {
        MyComponent myComponent = new MyComponent();
        myComponent.setName("prod");
        return myComponent;
    }


}
